package com.shaw.workrecord.dto;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author jiangjunhui
 * @description
 * @date 2022/9/15 10:10
 */
@Data
@TableName("room_member")
public class RoomMember {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 房间id
     */
    @TableField("room_id")
    private Long roomId;

    /**
     * 成员id
     */
    @TableField("memberId")
    private Long memberId;

    /**
     * 座位号
     */
    @TableField("seat")
    private Integer seat;

    /**
     * 成员类型 1 房主；2 普通成员 3 观战人员
     */
    @TableField("type")
    private Integer type;

    @TableField("leader")
    private Boolean leader;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime modifyTime;
}
